
class TableList {
 public:

  Table *openTable  (const string& tableName);
  bool   closeTable (const string& tableName);

 private:
  map<string, int> tableNames;
  vector<Table>    tables;
  vector<int>      refCount;

  Mutex tableListMutex;

};
